package p270jp.pxv.android.viewholder;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.Objects;
import p156ff.ChildComment;
import p270jp.pxv.android.R;
import p270jp.pxv.android.legacy.model.PixivWork;
import p270jp.pxv.android.view.CommentItemView;
import p307l9.EdgeTreatment;
import p314lg.ViewHolderNestedCommentChildBinding;

/* renamed from: jp.pxv.android.viewholder.ChildCommentViewHolder */
/* loaded from: classes2.dex */
public class ChildCommentViewHolder extends NestedCommentViewHolder {
    private final ViewHolderNestedCommentChildBinding binding;

    private ChildCommentViewHolder(ViewHolderNestedCommentChildBinding m7Var) {
        super(m7Var.f21931a);
        this.binding = m7Var;
    }

    public static ChildCommentViewHolder createViewHolder(ViewGroup viewGroup) {
        View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_holder_nested_comment_child, viewGroup, false);
        Objects.requireNonNull(inflate, "rootView");
        CommentItemView commentItemView = (CommentItemView) inflate;
        return new ChildCommentViewHolder(new ViewHolderNestedCommentChildBinding(commentItemView, commentItemView));
    }

    public void onBind(ChildComment aVar, PixivWork pixivWork, boolean z) {
        EdgeTreatment.m3909i(aVar);
        EdgeTreatment.m3909i(pixivWork);
        this.binding.f21932b.m4512b(aVar.f14532a, pixivWork, z);
    }
}
